package com.pvdnc.tapkit.chat.ui.friend;

import androidx.annotation.Nullable;

import java.util.Objects;

public class SessionEntity {
    public HeadNameEntity mOwner;

    public String mPreviewText;

    @Override
    public String toString() {
        return "SessionEntity{" +
                "mOwner=" + mOwner +
                ", mPreviewText='" + mPreviewText + '\'' +
                '}';
    }

    @Override
    public boolean equals(@Nullable Object obj) {
        if(obj==null)
            return false;
        if(!(obj instanceof SessionEntity))
            return false;
        SessionEntity entity=(SessionEntity)obj;
        return entity.mOwner.mName.equals(mOwner.mName);
    }
}
